]> dgit.raspbian.org Git - gnome-shell.git/commitdiff
status/backgroundApps: Close after activating app
authorFlorian Müllner <fmuellner@gnome.org>
Fri, 11 Aug 2023 09:59:43 +0000 (11:59 +0200)
committerMarge Bot <marge-bot@gnome.org>
Fri, 11 Aug 2023 10:27:49 +0000 (10:27 +0000)
We should leave the overview and close quick settings, like we
do elsewhere when launching something.

https://gitlab.gnome.org/GNOME/gnome-shell/-/issues/6895

Part-of: <https://gitlab.gnome.org/GNOME/gnome-shell/-/merge_requests/2884>

js/ui/status/backgroundApps.js

index ad7ea7d652f7d6e13af16ffc146c1fe41d04820e..d6f2e495b715c9c355bed7f89940a9f9d1215597 100644 (file)
@@ -95,7 +95,11 @@ const BackgroundAppMenuItem = GObject.registerClass({
 
         closeButton.connect('clicked', () => this._quitApp().catch(logError));
 
-        this.connect('activate', () => this.app.activate());
+        this.connect('activate', () => {
+            Main.overview.hide();
+            Main.panel.closeQuickSettings();
+            this.app.activate();
+        });
 
         this.connect('destroy', () => this._onDestroy());
     }